﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SiteGenerator;
internal sealed record InfoOfLoadedFile(FileInfo Input, FileInfo Output, FileInfo Resized)
{
    private static FileInfo ChangeDirectory(FileInfo file, DirectoryInfo directory)
    {
        return new(Path.GetFullPath(file.Name, directory.FullName));
    }
    public InfoOfLoadedFile(FileInfo input, DirectoryInfo outputImages, DirectoryInfo resizedImages) :
        this(input, ChangeDirectory(input, outputImages), ChangeDirectory(input, resizedImages))
    {
    }
}
